[id].vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. <template>
  2. <LayoutNavigation />
  3. <LayoutContainer>
  4. <v-row>
  5. <v-col cols="12">
  6. <CommonBanner :imageSrc="'/images/actu/pub.png'" imageAlt="'line'" />
  7. </v-col>
  8. </v-row>
  9. <div v-if="job">
  10. <v-row class="custom-row">
  11. <v-col>
  12. <div class="d-flex align-items-center">
  13. <NuxtLink
  14. to="/nous-rejoindre"
  15. style="text-decoration: none !important"
  16. >
  17. <div class="carousel-button">
  18. <i class="fa-solid fa-arrow-left" />
  19. </div>
  20. </NuxtLink>
  21. <NuxtLink to="/nous-rejoindre" class="ml-2 back-button mt-12">
  22. Retour aux annonces
  23. </NuxtLink>
  24. </div>
  25. </v-col>
  26. </v-row>
  27. <LayoutUITitlePage :title="job.title" />
  28. <v-row class="blue-content">
  29. <v-col cols="6">
  30. <v-row class="custom-row">
  31. <h4 class="detail-job mt-6 ml-12">
  32. Type de contrat :
  33. <span class="bold">{{ job.contractType }} </span>
  34. </h4></v-row
  35. >
  36. <v-row class="custom-row">
  37. <h4 class="detail-job mt-6 ml-12">
  38. Location :
  39. <span class="bold">{{ job.postalCode }} {{ job.city }}</span>
  40. </h4></v-row
  41. >
  42. </v-col>
  43. <v-col cols="6">
  44. <v-row class="custom-row">
  45. <h4 class="detail-job mt-6 ml-12">
  46. Secteur d'activité : <span class="bold">{{ job.sector }}</span>
  47. </h4></v-row
  48. >
  49. <v-row class="custom-row">
  50. <h4 class="detail-job mt-6 ml-12">
  51. Date de parution :
  52. <span class="bold">{{ job.startPublication }} </span>
  53. </h4></v-row
  54. >
  55. </v-col>
  56. </v-row>
  57. <v-row>
  58. <p class="custom-row description-job mb-12" v-html="job.content"></p>
  59. </v-row>
  60. <v-row class="d-flex justify-center align-center">
  61. <v-btn class="btn mb-12" text>
  62. <v-icon class="fas fa-info mr-2"></v-icon>Je postule
  63. </v-btn>
  64. </v-row>
  65. </div>
  66. <v-row class="d-flex justify-space-between custom-row">
  67. <p class="share">MOTS CLÉS</p>
  68. <div>
  69. <p class="share">PARTAGER</p>
  70. </div>
  71. </v-row>
  72. <v-row class="d-flex justify-space-between mb-8 custom-row">
  73. <p class="key-word mt-3">ROCK CONCERT FESTIVAL</p>
  74. <div class="social-icons">
  75. <a href="https://facebook.com" target="_blank" class="social-icon">
  76. <i class="fa-brands fa-facebook"></i>
  77. </a>
  78. <a href="https://twitter.com" target="_blank" class="social-icon">
  79. <i class="fa-brands fa-twitter"></i>
  80. </a>
  81. <a href="https://messenger.com" target="_blank" class="social-icon">
  82. <i class="fa-brands fa-facebook-messenger"></i>
  83. </a>
  84. <a href="https://instagram.com" target="_blank" class="social-icon">
  85. <i class="fa-brands fa-instagram"></i>
  86. </a>
  87. <a href="https://linkedin.com" target="_blank" class="social-icon">
  88. <i class="fa-brands fa-linkedin"></i>
  89. </a>
  90. <a href="mailto:example@example.com" class="social-icon">
  91. <i class="fa-solid fa-envelope"></i>
  92. </a>
  93. </div>
  94. </v-row>
  95. </LayoutContainer>
  96. <LayoutFooterPrefooter />
  97. <LayoutFooter />
  98. </template>
  99. <script setup lang="ts">
  100. import { ref } from "vue";
  101. import { useRoute } from "vue-router";
  102. import "vue3-carousel/dist/carousel.css";
  103. import { useMaestroRequestService } from "~/composables/useMaestroRequestService";
  104. const { apiRequestService } = useMaestroRequestService();
  105. const job = ref(null);
  106. const route = useRoute();
  107. const jobID = route.params.id;
  108. const pending = ref(true);
  109. const config = useRuntimeConfig();
  110. onMounted(async () => {
  111. try {
  112. job.value = await apiRequestService.get(
  113. `${config.public.apiBaseUrl}/api/job-postings/${jobID}`
  114. );
  115. pending.value = false;
  116. } catch (error) {
  117. console.error("Erreur lors de la récupération de l'annonce", error);
  118. pending.value = false;
  119. }
  120. });
  121. const getImageUrl = (attachment: string) => {
  122. if (attachment) {
  123. return `${config.public.apiBaseUrl}/uploads/job_postings/${attachment}`;
  124. }
  125. console.log("pas d'image");
  126. };
  127. </script>
  128. <style scoped>
  129. .description-job {
  130. color: #0e2d32;
  131. text-align: justify;
  132. font-family: "Barlow";
  133. font-size: 1.875rem;
  134. font-style: normal;
  135. font-weight: 500;
  136. line-height: 2.125rem;
  137. }
  138. .custom-row {
  139. width: 90%;
  140. margin-left: auto;
  141. margin-right: auto;
  142. }
  143. :deep().text-left,
  144. :deep().text-right,
  145. :deep().description-square,
  146. :deep().black-square,
  147. :deep().blue-square {
  148. display: none;
  149. }
  150. :deep().text-right {
  151. display: none;
  152. }
  153. :deep().cover-image {
  154. transform: none;
  155. }
  156. .bold {
  157. font-weight: bold;
  158. }
  159. .detail-job {
  160. font-family: "Barlow";
  161. font-style: normal;
  162. font-weight: 500;
  163. font-size: 25px;
  164. line-height: 18px;
  165. margin-bottom: 1rem;
  166. }
  167. .blue-content {
  168. background-color: #64afb7;
  169. height: 10rem;
  170. margin-top: -1rem;
  171. margin-bottom: 2rem;
  172. }
  173. .banner-container {
  174. position: relative;
  175. overflow: hidden;
  176. display: flex;
  177. justify-content: center;
  178. align-items: flex-start;
  179. height: 25rem;
  180. width: 100%;
  181. }
  182. .cover-image {
  183. width: 95%;
  184. height: auto;
  185. object-fit: cover;
  186. margin: 0 auto;
  187. display: block;
  188. }
  189. .btn {
  190. background: var(--Vert-60, #64afb7);
  191. display: flex;
  192. left: 0;
  193. padding: 25px 28px;
  194. align-items: center;
  195. gap: 9px;
  196. color: var(--NEUTRAL---BLANC, #fff);
  197. font-family: Barlow;
  198. font-size: 0.9rem;
  199. border-radius: 5px;
  200. font-style: normal;
  201. font-weight: 700;
  202. line-height: 15px;
  203. letter-spacing: 1.3px;
  204. text-transform: uppercase;
  205. margin-bottom: -1rem;
  206. }
  207. .green--text {
  208. color: green;
  209. }
  210. .red--text {
  211. color: red;
  212. }
  213. .black--text {
  214. color: black;
  215. }
  216. .btn-news {
  217. color: #9edbdd;
  218. border-radius: 2rem;
  219. font-family: "Barlow";
  220. background: transparent;
  221. border: 1px solid #9edbdd;
  222. border-radius: 6px;
  223. font-style: normal;
  224. font-weight: 600;
  225. text-transform: uppercase;
  226. display: flex;
  227. flex-direction: row;
  228. align-items: center;
  229. padding: 25px;
  230. font-size: 10px;
  231. line-height: 15px;
  232. }
  233. .chip-detail {
  234. color: #000000;
  235. }
  236. .chip-custom {
  237. color: white;
  238. border: 1px solid white;
  239. border-radius: 3rem;
  240. text-transform: uppercase;
  241. font-family: "Barlow";
  242. font-style: normal;
  243. display: flex;
  244. align-items: center;
  245. text-align: center;
  246. }
  247. .card-localisation {
  248. letter-spacing: 0.18em;
  249. text-transform: uppercase;
  250. font-size: 10px;
  251. color: #112528;
  252. }
  253. .card {
  254. border-radius: 15px 15px 0 0;
  255. margin-bottom: 2rem;
  256. }
  257. .icon-title {
  258. color: #64afb7;
  259. margin-top: 4.5rem;
  260. }
  261. .container-title {
  262. display: flex;
  263. align-items: center;
  264. margin-left: 2rem;
  265. margin-top: 4.5rem;
  266. }
  267. .carousel-button i {
  268. color: #000000;
  269. }
  270. .card-text {
  271. font-family: "Barlow";
  272. font-style: normal;
  273. font-weight: 500;
  274. font-size: 16px;
  275. line-height: 18px;
  276. margin-bottom: 1rem;
  277. color: #fff !important;
  278. }
  279. .card-title {
  280. font-family: "Barlow";
  281. font-style: normal;
  282. font-weight: 500;
  283. font-size: 20px;
  284. line-height: 24px;
  285. display: flex;
  286. align-items: center;
  287. letter-spacing: 0.18em;
  288. text-transform: uppercase;
  289. color: #fff !important;
  290. }
  291. .card-date {
  292. font-size: 0.8em;
  293. color: #888;
  294. margin-left: 1rem;
  295. color: #fff !important;
  296. }
  297. .card-footer {
  298. display: flex;
  299. justify-content: space-between;
  300. align-items: center;
  301. }
  302. .card-body {
  303. text-align: left;
  304. margin-bottom: 1rem;
  305. margin-left: 1rem;
  306. font-family: "Barlow";
  307. font-style: normal;
  308. font-weight: 500;
  309. line-height: 24px;
  310. color: #fff !important;
  311. color: #112528;
  312. }
  313. .card-img-top {
  314. border-radius: 9px 9px 0 0;
  315. width: 100%;
  316. object-fit: 90%;
  317. object-position: center;
  318. width: 384px;
  319. height: 247.11px;
  320. }
  321. .title,
  322. .carousel-button,
  323. .btn-news {
  324. margin-top: 2rem;
  325. margin-bottom: 2rem;
  326. }
  327. .agenda-details {
  328. font-family: "Barlow";
  329. font-style: normal;
  330. font-weight: 300;
  331. font-size: 16px;
  332. line-height: 20px;
  333. margin-left: 2rem;
  334. color: #091d20;
  335. margin-bottom: 3rem;
  336. width: 15rem;
  337. }
  338. .title {
  339. font-family: "Barlow";
  340. font-style: normal;
  341. font-weight: 600;
  342. font-size: 42px;
  343. line-height: 42px;
  344. margin-left: 2rem;
  345. color: #071b1f;
  346. }
  347. .carousel-button {
  348. display: flex;
  349. justify-content: center;
  350. align-items: center;
  351. width: 60px;
  352. height: 60px;
  353. background-color: transparent;
  354. border: 2px solid #000000;
  355. cursor: pointer;
  356. margin-right: 1rem;
  357. }
  358. .container-green {
  359. background-color: #0e2d32;
  360. }
  361. .back-button {
  362. text-decoration: none;
  363. color: #000000;
  364. font-family: Barlow;
  365. font-size: 0.9rem;
  366. font-style: normal;
  367. font-weight: 700;
  368. line-height: 15px;
  369. letter-spacing: 1.8px;
  370. text-transform: uppercase;
  371. }
  372. .description-actu {
  373. color: #0e2d32;
  374. text-align: justify;
  375. font-family: Barlow;
  376. font-size: 30px;
  377. font-style: normal;
  378. font-weight: 500;
  379. line-height: 34px;
  380. margin-left: 3.5rem;
  381. margin-right: 3.5rem;
  382. margin-bottom: 3rem;
  383. }
  384. .share {
  385. color: #000;
  386. font-family: Barlow;
  387. font-size: 26px;
  388. font-style: normal;
  389. font-weight: 400;
  390. line-height: 28px;
  391. }
  392. .social-icons {
  393. display: flex;
  394. gap: 10px;
  395. }
  396. .social-icon i {
  397. font-size: 1.9em;
  398. margin-left: 0.5rem;
  399. margin-top: 0.5rem;
  400. color: #0e2d32;
  401. }
  402. .key-word {
  403. color: #000;
  404. font-family: Barlow;
  405. font-size: 20px;
  406. font-style: normal;
  407. font-weight: 500;
  408. line-height: 24px;
  409. }
  410. .title-other {
  411. color: #fff;
  412. }
  413. </style>